
import java.util.Date;


public class Idea {

    private Date timeStamp;
    private String text;
    private PriorityValue priority;
    private TypeValue type;

    public Idea(String text, PriorityValue priority, TypeValue type){
        timeStamp = new Date();

        this.text = text;
        this.type = type;
        this.priority = priority;
    }

    @Override
    public String toString() {
        return String.format("%s %s (%s, %s)",
                timeStamp, text, priority, type);
    }



    public static void main(String[] args) {

        Idea idea = new Idea("E=mc^2", PriorityValue.HIGH, TypeValue.RADICAL);

        System.out.println("Idea: " + idea.toString());

    }

}
